package autokeyboard.data;

import java.awt.Dimension;
import java.awt.Graphics;

import javax.swing.ImageIcon;
import javax.swing.JPanel;

@SuppressWarnings("serial")
public class PicturePanel extends JPanel
{
	public String	path	= "/Background/PlayOption-1.png";

	@Override
	public void paintComponent(Graphics g)
	{
		Dimension d = this.getSize();

		g.drawImage(new ImageIcon(getClass().getResource(path)).getImage(), 0, 0, d.width, d.height, this);
		this.setOpaque(false);
		super.paintComponent(g);
	}
}
